package com.cash.app.utils.extra.tools

import android.os.Build
import java.util.Locale

object BrandUtil {
    private val BRAND = Build.BRAND.lowercase(Locale.getDefault())

    val isXiaomi: Boolean
        get() = Build.MANUFACTURER.lowercase(Locale.getDefault()) == "xiaomi" || BRAND.contains(
            "redmi"
        ) || BRAND.contains("xiaomi")

    val isVivo: Boolean
        get() = BRAND.contains("vivo") || BRAND.contains("bbk")

    val isOppo: Boolean
        get() = BRAND.contains("oppo")

    val isHuawei: Boolean
        get() = BRAND.contains("huawei") || BRAND.contains("honor")

    val isSamsung: Boolean
        get() = BRAND.contains("samsung")
}
